import requestChenLong from '@/utils/requestService.js'


//获得corpid
export function getCorpId() {  //获得corpid
  return requestChenLong({
    url: '/business/data/statistics/getQywxThirdCompanyList',
    method: 'post',
  })
}

//医院客户运营总览
export function getCustomerOperationOne(data) {  //核心指标概览
  return requestChenLong({
    url: '/business/data/statistics/getCustomerOperationOne',
    method: 'post',
    data: data
  })
}

export function getCustomerHealthDegree(data) {  //客户健康度总览
  // const { pageNum, pageSize, ...params } = data || {};
  // return requestChenLong({
  //   url: `/business/data/statistics/getCustomerHealthDegree?pageNum=${pageNum}&pageSize=${pageSize}`,
  //   method: 'post',
  //   data: params
  // })
  return requestChenLong({
    url: `/business/data/statistics/getCustomerHealthDegree`,
    method: 'post',
    data: data
  })
}
export function exportCustomerHealthDegree(data) {  //客户健康度总览导出
  return requestChenLong({
    url: `/business/data/statistics/exportCustomerHealthDegree`,
    method: 'post',
    data: data
  })
}

//医护访问情况总览
export function getTodayVisit(data) {  //今日访问数据、访问核心数据
  return requestChenLong({
    url: `/business/data/statistics/getTodayVisit`,
    method: 'post',
    data: data
  })
}


export function getHourlyVisitData(data) {  //访问实时数据
  return requestChenLong({
    url: `/business/data/statistics/getHourlyVisitData`,
    method: 'post',
    data: data
  })
}

export function getVisitCoreTrendData(data) {  //访问核心趋势数据
  return requestChenLong({
    url: `/business/data/statistics/getVisitCoreTrendData`,
    method: 'post',
    data: data
  })
}

export function getVisitFunctionTrendData(data) {  //访问核心功能趋势数据
  return requestChenLong({
    url: `/business/data/statistics/getVisitFunctionTrendData`,
    method: 'post',
    data: data
  })
}

export function getVisitFunctionTopData(data) {  //功能访问TOP10
  return requestChenLong({
    url: `/business/data/statistics/getVisitFunctionTopData`,
    method: 'post',
    data: data
  })
}

//医院标签运营总览
export function getHospitalTagOverview(data) {  //核心指标概览
  return requestChenLong({
    url: `/business/data/statistics/getHospitalTagOverview`,
    method: 'post',
    data: data
  })
}

export function getEachHospitalTagUsage(data) {  //各医院标签使用情况分析
  return requestChenLong({
    url: `/business/data/statistics/getEachHospitalTagUsage`,
    method: 'post',
    data: data
  })
}

export function getEachHospitalTagSituation(data) {  //各医院标签使用情况分析
  return requestChenLong({
    url: `/business/data/statistics/getEachHospitalTagSituation`,
    method: 'post',
    data: data
  })
}

export function getEachHospitalTagGroupSituation(data) {  //各医院标签组使用情况分析
  return requestChenLong({
    url: `/business/data/statistics/getEachHospitalTagGroupSituation`,
    method: 'post',
    data: data
  })
}

export function getProvinceRegionDistribution(data) {  //地市地图分布
  return requestChenLong({
    url: `/business/data/statistics/getProvinceRegionDistribution`,
    method: 'post',
    data: data
  })
}







